<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>微信公众平台源码,微信机器人源码,微信自动回复源码 iMicms多用户微信营销系统</title>
<meta http-equiv="MSThemeCompatible" content="Yes" />
<link rel="stylesheet" type="text/css" href="{iMicms::RES}/css/style_2_common.css?BPm" />
<script src="{iMicms::RES}/js/common.js" type="text/javascript"></script>
<link href="{iMicms::RES}/css/style.css" rel="stylesheet" type="text/css" />
 <script src="{iMicms::STATICS}/jquery-1.4.2.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak={iMicms::$apikey}"></script>
 <link rel="stylesheet" type="text/css" href="{iMicms::RES}/css/cymain.css" />
 <script src="/tpl/static/artDialog/jquery.artDialog.js?skin=default"></script>
<script src="/tpl/static/artDialog/plugins/iframeTools.js"></script>
</head>
<body style="background:#fff">
<if condition="$result neq 1">
<form enctype="multipart/form-data" action="http://v0.api.upyun.com/{iMicms:$bucket}/" id="thumbForm" method="POST" style="font-size:14px;padding:10px 20px 10px 20px;">

<input type="hidden" name="policy" value="{iMicms:$policy}">
<input type="hidden" name="signature" value="{iMicms:$sign}">
<p><div style="font-size:14px;">选择图片：<br><br><input type="file" style="width:90%;border:1px solid #ddd" name="file"></input></div><div style="padding:20px 0;text-align:center;"><input id="submitbtn" name="doSubmit" type="submit" class="btn btn-primary btn_submit  J_ajax_submit_btn" value="上传" onclick="this.value='上传中...'" /> </div></p>
</form>
<else/>
<div style="text-align:center;line-height:140px;font-size:14px;"> <img src="/tpl/User/default/common/images/export.png" align="absmiddle" /> {iMicms:$message} </div>
<script>
var domid=art.dialog.data('domid');
// 返回数据到主页面
function returnHomepage(url){
	var origin = artDialog.open.origin;
	var dom = origin.document.getElementById(domid);
	var domsrcid=domid+'_src';

	if(origin.document.getElementById(domsrcid)){
	origin.document.getElementById(domsrcid).src=url;
	origin.document.getElementById(domsrcid).className='upImgClass';
	}
	
	dom.value=url;
	setTimeout("art.dialog.close()", 1500 )
}
<php>if($_GET['code']==200){</php>
returnHomepage('<php>echo $upyun_domain.$_GET['url'];</php>');
<php>}</php>
</script>
</if>
</body>
</html>